package com.ruoyi.project.system.domain;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType;
import com.ruoyi.framework.web.domain.BaseEntity;
import org.springframework.data.annotation.Id;

/**
 * 岗位表 sys_post
 * 
 * @author ruoyi
 */
@Data
public class SysPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 岗位序号 */
//
//    @Excel(name = "岗位序号", cellType = ColumnType.NUMERIC)
//    private String postId;

    /** 岗位编码 */
    @TableField("post_code")
    @Excel(name = "岗位编码")
    private String postCode;

    /** 岗位名称 */
    @TableField("post_name")
    @Excel(name = "岗位名称")
    private String postName;

    /** 岗位排序 */
    @TableField("post_sort")
    @Excel(name = "岗位排序")
    private Integer postSort;

    /** 状态（0正常 1停用） */
    @TableField("status")
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 用户是否存在此岗位标识 默认不存在 */
    @TableField(exist = false)
    private boolean flag = false;
}
